#include "Node.h"

class PriorityComparator {
public:
    bool operator () (Node* a, Node* b) {
        double ea = a->get_image()->get_relative_area();
        double eb = b->get_image()->get_relative_area();
        double aa = a->get_image()->get_area();
        double ab = b->get_image()->get_area();
        return ea == eb ? aa <= ab : ea <= eb;
    }
};
